<template>
  <div id="app-zhiye">
    <div class="images">
      <div class="titlezhiye">你知道自己适合什么职业了吗？</div>
      <div class="desc">这里根据大数据为您推荐了一些与您的专业、兴趣、价值观相匹配的职业，快去探索下职位的具体内容吧！同时你也可以通过搜索职业信息库，收藏喜欢的职业来确定自己的职业目标哦！
      </div>
    </div>
    <div class="recommendTitle">我的职业推荐清单</div>
    <div class="recommendList">
      <div class="l">
        与所学专业匹配的职业
        <span class="l-item">5</span>
      </div>
      <div class="r">
        <span class="r-item">事业单位人员</span>
        <span class="r-item">林业技术人员</span>
        <!-- <span class="r-item">人力资源专员/助理</span> -->
        <a href="javascript:;" class="r-item">人力资源专员/助理</a>
        <span class="r-item">公务员</span>
        <!-- <span class="r-item">银行客户代表</span> -->
        <a href="javascript:;" class="r-item">银行客户代表</a>
      </div>
    </div>
    <div class="recommendTitle">搜索更多感兴趣的职业</div>
    <div class="search">
      <!-- <t-input  clearable  placeholder="请输入" @clear="onClear"/> -->
      <!-- <input v-model="value" type="text" name="text" class="input" placeholder="请输入想搜索的职业"> -->
      <div class="group">
        <svg  class="icon" aria-hidden="true" viewBox="0 0 24 24">
          <g>
            <path d="M21.53 20.47l-3.66-3.66C19.195 15.24 20 13.214 20 11c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9c2.215 0 4.24-.804 5.808-2.13l3.66 3.66c.147.146.34.22.53.22s.385-.073.53-.22c.295-.293.295-.767.002-1.06zM3.5 11c0-4.135 3.365-7.5 7.5-7.5s7.5 3.365 7.5 7.5-3.365 7.5-7.5 7.5-7.5-3.365-7.5-7.5z"></path>
          </g>
        </svg>
        <div @click="submit" style="display:inline-block;width:30px;height:30px;position:absolute;left:7px;z-index:100;cursor: pointer;"></div>
        <input v-model="value" placeholder="请输入想搜索的职业" type="search" class="input">
      </div>
      <!-- <t-button @click="submit" style="height:40px">搜索</t-button> -->
    </div>

    <nav>
      职业分类：
      <router-link to="/Whole" id="a1">全部</router-link>
      <router-link to="/internet">互联网/通信</router-link>
      <router-link to="/finance">金融/贸易</router-link>
      <router-link to="/building">建筑/工程</router-link>
      <router-link to="/entrepreneurs">青年创业者</router-link>
    </nav>
    <router-view :showSearch='search'/>
  </div>
</template>

<script>
// import $ from 'jquery'
export default {
  data () {
    return {
      value: '',
      search: ''
    }
  },
  mounted(){
    this.$router.push('/Whole')
  },
  methods: {
    onClear () {
      console.log('clear')
    },
    submit () {
      console.log('ok')
      this.search = this.value
      this.value = ''
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#app-zhiye{
  background-color: #fff;
}
.images{
  background:#f5f7fd url('https://t2.chei.com.cn/xz/assets/web/images/zhiyts-top.svg') no-repeat;
  height: 100%;
  padding-top: 80px;
  padding-left: 480px;
  text-align: left;
}
.titlezhiye{
  padding-bottom: 33px;
}
.images .titlezhiye{
  font-size: 40px;
}
.images .desc{
  width: 80%;
  height: 98px;
}
.recommendTitle{
  margin-top: 60px;
  margin-bottom: -8px;
  margin-left: 37px;
  text-align: left;
  font-size: 28px;
  font-weight: bolder;
}
.recommendList{
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 30px 37px 0 37px;
}
.recommendList .l::after{
  background: url('https://t2.chei.com.cn/xz/assets/web/images/zhiyts-sxzy.png') no-repeat;
  content: " ";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 107px;
  height: 92px;
}
.recommendList .l{
  display: inline-block;
  background: linear-gradient(135deg,#294ed6,#9ba8d9);
  position: relative;
  /* float: left; */
  text-align: left;
  width: 288px;
  height: 134px;
  padding: 24px 26px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #fff;
  margin-left: 0;
}
.recommendList .l .l-item{
  display: block;
  width: 34px;
  height: 22px;
  line-height: 22px;
  background: rgba(0,0,0,.2);
  font-size: 16px;
  text-align: center;
  margin-top: 8px;
  margin-left: 0;
  border-radius: 1px;
}
.recommendList .r{
  /* background-color: #294ed6; */
  /* border-color: #a0aee0; */
  position: relative;
  display: inline-block;
  text-align: left;
  /* float: right; */
  width: 90%;
  height: 134px;
  padding: 10px 20px 8px;
  /* box-sizing: border-box; */
  border: 1px solid  #a0aee0;;
  border-left: 3px solid  #a0aee0;;
  margin-left: 30px;
}
.recommendList .r:before{
  content: " ";
  position: absolute;
  left: -15px;
  top: 15px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: #a0aee0;
}
.recommendList .r a.r-item{
  color: #4e9bf7;
  background-color: #edf5ff;
  text-decoration: none;
}
.recommendList .r .r-item{

  display: inline-block;
  height: 42px;
  line-height: 42px;
  padding: 0 16px;
  margin-right: 10px;
  margin-bottom: 12px;
  background-color: #f6f6f6;
  text-align: center;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}
.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  width: 360px;
}

.input {
  height: 40px;
  line-height: 28px;
  padding: 0 1rem;
  width: 100%;
  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: #fefefe;
  color: #0d0c22;
  box-shadow: 0 0 5px #C1D9BF, 0 0 0 7px #f5f5f5eb;
  transition: .3s ease;
}

.input::placeholder {
  color: #777;
}

.icon {
  position: absolute;
  left: 1rem;
  fill: #777;
  width: 1rem;
  height: 1rem;
}
.search{
  display: flex;
  align-items: center;
  width: 360px;
  height: 45px;
  margin: 70px 0 50px 38px;
  /* width: 60%; */
}
.search .t-input{
  overflow: hidden;
}
.search .t-input__wrap{
  width: 50%;
  margin-top: 30px;
}
#app-zhiye {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 38px;
  width: 70%;
  border-radius: 10px;
  padding: 30px 0;
  background-color: rgb(222, 244, 255);
  background: linear-gradient(90deg,#f3ffbe,#c8d3fd);
}

nav a {
  padding: 20px;
  text-decoration: none;
  font-weight: bold;
  color: #2c3e50;
}
nav a:hover{
  text-shadow: 1px 1px 2px rgb(197, 197, 197);
  /* background-color: cornflowerblue; */
}

nav a.router-link-exact-active {
  color: #294ed6;
}
</style>
